package syerit.core.utils
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.DisplayObject;
	import flash.display.Sprite;

	public class BitmapUtil
	{
		/*
		* Creating a bitmap copy of a sprite
		*/
		public static function copyBitmap(container:DisplayObject):Bitmap 
		{
			var bmpCopy:Bitmap = new Bitmap( new BitmapData(container.width, container.height) );
			bmpCopy.bitmapData.draw( container );
			return bmpCopy;
		}
	}
}